﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngTaskPlan.aspx.cs" Inherits="LDSP.UI.EnterpriseAdmin.MngTaskPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../../Scripts/calendar.js"></script>
    <title>任务计划跟踪</title>
    <script type="text/javascript">
        $(function () {
            $('#gridArea :checkbox').each(function () {
                $(this).bind("click", function () {
                    CheckDocIDs("hid_docIDs", "grd_list", "docid", this);
                })
            });

            KeepGridHead("gridHead");
        });     
    </script>
    <style type="text/css">
        #Table1
        {
            width: 844px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:HiddenField ID="hid_docIDs" runat="server" />
    <div>
        <table style="width: 100%">
            <tr>
                <td valign="top">
                    <div class="mngTitle">
                        <table width="100%">
                            <tr>
                                <td>
                                    <span class="mngEmphasis">任务计划列表</span>
                                    <asp:Label ID="TotalRecords" runat="server" Text="Label" CssClass="searchResultLabel"></asp:Label>
                                </td>
                                <td style="text-align: right">
                                    <a class="helplink" href="javascript:ShowHelpDialog('../UserManagement/Help.aspx#6')">
                                        帮助</a>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <fieldset>
                        <legend>查询</legend>
                        <table id="filterArea" class="mngDetail">
                            <tr id="tr_subdiary" runat="server">
                                <td class="searchLabel">
                                    子公司名称：
                                </td>
                                <td class="searchValue">
                                    <asp:DropDownList ID="ddl_subdiary" runat="server" Width="175px">
                                    </asp:DropDownList>
                                </td>
                                <td class="searchLabel">
                                </td>
                                <td class="searchValue">
                                </td>
                            </tr>
                            <tr>
                                <td class="searchLabel">
                                    法律法规/标准名称：
                                </td>
                                <td class="searchValue">
                                    <asp:TextBox ID="txt_cod_name" runat="server" Width="175px"></asp:TextBox>
                                </td>
                                <td class="searchLabel">
                                    责任人：
                                </td>
                                <td class="searchValue">
                                    <asp:TextBox ID="txt_principle" runat="server" Width="175px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="searchLabel">
                                    任务名称：
                                </td>
                                <td class="searchValue">
                                    <asp:TextBox ID="txt_name" runat="server" Width="175px"></asp:TextBox>
                                </td>
                                <td class="searchLabel">
                                    执行部门/人员：
                                </td>
                                <td class="searchValue">
                                    <asp:TextBox ID="txt_referenceNumber" runat="server" Width="175px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="searchLabel">
                                    任务状态：
                                </td>
                                <td class="searchValue">
                                    <asp:DropDownList ID="ddl_status" runat="server" Width="175px">
                                    </asp:DropDownList>
                                </td>
                                <td class="searchLabel">
                                    到期时间：
                                </td>
                                <td class="searchValue">
                                    <asp:TextBox ID="txt_implementStartDT" runat="server" Width="70px" onclick="HS_setDate(this)"></asp:TextBox>
                                    ～<asp:TextBox ID="txt_implementEndDT" runat="server" Width="70px" onclick="HS_setDate(this)"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddl_pageSize" runat="server" OnSelectedIndexChanged="ddl_pageSize_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />
                                    <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                                </td>
                                <td>
                                    &nbsp;&nbsp;
                                </td>
                                <td class="searchValue">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <div style="font-size: x-large; margin-bottom: 10px; margin-top: 20px;">
                        <asp:Label ID="lbl_task_all" runat="server" ForeColor="White" Font-Bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lbl_expired_unfinished" ForeColor="White" runat="server" Font-Bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lbl_task_inProgress" ForeColor="White" runat="server" Font-Bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lbl_task_completed" ForeColor="White" runat="server" Font-Bold="True"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lbl_task_paused" ForeColor="White" runat="server" Font-Bold="True"></asp:Label>
                    </div>
                    <asp:Button ID="btnExportSelected" runat="server" Text="导出选中" OnClick="btnExportSelected_Click" />
                    <asp:Button ID="btnExport" runat="server" Text="导出全部" OnClick="btnExport_Click" />
                    <div id="gridArea">
                        <div id="gridHead">
                            <asp:GridView ID="grd_list_head" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" BackColor="#666699" BorderColor="#999999"
                                AllowPaging="true" AllowSorting="true" CellPadding="3" GridLines="Vertical" Width="100%"
                                OnSorting="grd_list_Sorting">
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                                        </HeaderTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="序号" SortExpression="" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="子公司名称" DataField="" SortExpression="" ItemStyle-Width="160px"
                                        ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField HeaderText="任务名称" DataField="name" SortExpression="name" ItemStyle-Width="160px"
                                        ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField HeaderText="状态" DataField="status" SortExpression="status" ItemStyle-Width="45px"
                                        ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField HeaderText="责任人" DataField="person" SortExpression="person" ItemStyle-Width="160px"
                                        ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField HeaderText="到期时间" DataField="expiredDT" SortExpression="expiredDT"
                                        ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:BoundField HeaderText="项目进度概述" DataField="progress" SortExpression="progress">
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="类型" DataField="type" SortExpression="type" ItemStyle-Width="45px">
                                    </asp:BoundField>
                                    <asp:BoundField HeaderText="修改时间" DataField="changeDT" SortExpression="changeDT"
                                        ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                    <asp:TemplateField HeaderText="操作" ShowHeader="False" ItemStyle-Width="55px" ItemStyle-HorizontalAlign="Center">
                                        <ItemStyle HorizontalAlign="Left" Width="55px" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle CssClass="gridlisthead" ForeColor="White" />
                            </asp:GridView>
                        </div>
                        <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                            DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                            BackColor="#666699" BorderColor="#999999" AllowPaging="true" AllowSorting="true"
                            CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                            OnSorting="grd_list_Sorting" ShowHeader="False">
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                                ForeColor="white" />
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chb" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                </asp:BoundField>
                                <asp:BoundField HeaderText="子公司名称" ItemStyle-Width="160px" ItemStyle-HorizontalAlign="Center">
                                </asp:BoundField>
                                <asp:BoundField HeaderText="任务名称" DataField="name" SortExpression="name" ItemStyle-Width="160px"
                                    ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                <asp:BoundField HeaderText="状态" DataField="status" SortExpression="status" ItemStyle-Width="45px"
                                    ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                <asp:BoundField HeaderText="责任人" DataField="person" SortExpression="person" ItemStyle-Width="160px"
                                    ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                <asp:BoundField HeaderText="到期时间" DataField="expiredDT" SortExpression="expiredDT"
                                    ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                <asp:BoundField HeaderText="项目进度概述" DataField="progress" SortExpression="progress">
                                </asp:BoundField>
                                <asp:BoundField HeaderText="类型" DataField="type" SortExpression="type" ItemStyle-Width="45px">
                                </asp:BoundField>
                                <asp:BoundField HeaderText="修改时间" DataField="changeDT" SortExpression="changeDT"
                                    ItemStyle-Width="60px" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
                                <asp:TemplateField HeaderText="操作" ShowHeader="False" ItemStyle-Width="55px" ItemStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnk_update" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                                            CommandName="updateItem" Text="修改"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" Width="55px" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#DCDCDC" />
                        </asp:GridView>
                    </div>
                    <asp:Button ID="btnExportSelected_bottom" runat="server" Text="导出选中" OnClick="btnExportSelected_Click" />
                    <asp:Button ID="btnExport_bottom" runat="server" Text="导出全部" OnClick="btnExport_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
